package carFactory;

public class BEVFactory extends AbstractFactory{
	BEV bcar;
	BEVFactory(){
		this.obs = new BEVObserver();
	}
	public void create() {
		System.out.println("----------------------");
		this.engine = new EngineBEV();
		this.frame = new AutomobileFrame();
		this.gearbox = new Gearbox();
		this.tires = new Tires();
	}
	
	public Icar assemble() {
		this.bcar = new BEV(this.engine, this.gearbox, this.tires);
		System.out.println("----------------------");
		return this.bcar;
	}
}
